import {reactive} from "vue";
import {createStore} from "vuex";

// 统一对象管理，只用到state，状态更新，getter，setter没用到
const store = createStore({
    state() {
        return {
            // 用户信，用于整体登录状态
            userInfo: reactive({
                username: "", pic: ""
            }),
        }
    }
})

export default store
